package cn.wolfcode.wolf2w.business.service;

import cn.wolfcode.wolf2w.business.domain.Strategy;
import cn.wolfcode.wolf2w.business.respority.StrategyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class StrategyServiceImpl {

    @Autowired
    private StrategyRepository strategyRepository;
    /*
    * query=》question
    * size=》topK
    * */
    public List<Strategy> search(String query,int size) throws IOException {

        return strategyRepository.search(query,size);
    }

}
